package com.yingxin.yxerp.module.inform.entity.builder;

import cn.hutool.core.bean.BeanUtil;
import com.yingxin.yxerp.module.inform.entity.NoticeType;
import com.yingxin.yxerp.module.inform.vo.req.NoticeTypeCreateVo;

/**
 *
 * @author zhuchangjie
 * @since 2021-12-21
 */
public class NoticeTypeBuilder {

    /**
    * build
    * @param vo
    * @return
    */
    public static NoticeType build(NoticeTypeCreateVo vo) {
        NoticeType noticeType = new NoticeType();
        BeanUtil.copyProperties(vo, noticeType);
        return noticeType;
    }
}
